import{i as f,p as g,h as u}from"./D_ceqfUSagutd.js";const m=g("app-context");function j(){const t=f("app");if(!t)throw m.error("App context not found"),new Error("App context not found");return t}const C=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const p=t=>t==="";const x=(...t)=>t.filter((e,o,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===o).join(" ").trim();const d=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const A=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,o,r)=>r?r.toUpperCase():o.toLowerCase());const k=t=>{const e=A(t);return e.charAt(0).toUpperCase()+e.slice(1)};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const v=({name:t,iconNode:e,absoluteStrokeWidth:o,"absolute-stroke-width":r,strokeWidth:i,"stroke-width":l,size:c=n.width,color:w=n.stroke,...s},{slots:a})=>u("svg",{...n,...s,width:c,height:c,stroke:w,"stroke-width":p(o)||p(r)||o===!0||r===!0?Number(i||l||n["stroke-width"])*24/Number(c):i||l||n["stroke-width"],class:x("lucide",s.class,...t?[`lucide-${d(k(t))}-icon`,`lucide-${d(t)}`]:["lucide-icon"]),...!a.default&&!C(s)&&{"aria-hidden":"true"}},[...e.map(h=>u(...h)),...a.default?[a.default()]:[]]);const L=(t,e)=>(o,{slots:r,attrs:i})=>u(v,{...i,...o,iconNode:e,name:t},r);export{L as c,j as g};